﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ECANPort
{
    public interface IECAN_Device
    {
         event ECAN_RecvDataHandle ECAN_RecvDataEvent;
         event ECAN_RecvStringDataHandle ECAN_RecvStringDataEvent;
         event ECAN_ReportErrHandle ECAN_ReportErrEvent;
         event ECAN_ReportStringErrHandle ECAN_ReportStringErrEvent;
         bool OpenAndStartCAN_Device(INIT_CONFIG[] cfg, uint[] CanIndex);
         ECANStatus CloseCAN_Device();
         bool SendMsg(ref CanCom_HTB HTB, CAN_OBJ frameinfo);

    }
}
